using System;
using System.Collections.Generic;
using Vici.Mvc;

namespace Demo.ViciMvc
{
    public static class Application
    {
        public static void Init()
        {
            WebAppConfig.SessionType = typeof (DemoSession);

            WebAppConfig.Router.AddDefaultRoutes(null); // ".aspx"

            WebAppConfig.RegisterCustomObjectCreator(new DataObjectCreator());

            WebAppConfig.AjaxProvider = new JQueryAjaxProvider();

            WebAppConfig.Router.AddRoute("","index");
        }

        public static DemoSession Session
        {
            get { return (DemoSession)WebAppContext.Session; }
        }
    }


}
